<h2><?= $subject ?></h2>

<div class="table_body">
	<?= $body ?>
	<p />
		<?= _l('message_author') ?>: <?= url_user($from_id, $from_name)?><br>
		<?= _l('message_date') ?>: <b><?= $date ?></b>
	<p />
	
	<a href="/messages/delete/<?= $mess_id ?>.html"><?= _l('message_delete') ?></a>
	
	<?php if ($friend): ?>
	| <a href="/user/messages/write/?to=<?= $from_id ?>&subject=<?= $subject ?>"><?= _l('message_reply') ?></a>
	<?php else: ?>
		<p style="color:red;"> 
			<?= _l('mess_notafriend_start')?>
			<?= url_user($from_id, _l('mess_notafriend_add'))?> 
			<?= _l('mess_notafriend_end')?>			
		</p>
	<?php endif; ?>
</div>

<div class="simple_div"><?= anchor('user/messages/', '&larr; '._l('message_back_inbox')) ?></div>
